<!DOCTYPE html>
<html>
<head>
<title>{$user.nick_name}  - 我的订单</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>

<body class="body-white" id="top">
<include file="public@nav" />

	<div class="container tc-main">
		<div class="row">
			<div class="col-md-3">
				<include file="public@usernav" />
			</div>
			<div class="col-md-9">
				<div class="tabs">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-star"></i> 我的订单</a></li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="one">
							<br>
							<table class="table table-bordered table-striped table-hover">
								<thead>
									<tr>
										<th>订单编号</th>
										<th>所属店铺</th>
										<th>订单总额</th>
										<th>实际付款</th>
                                                                                <th>会员付款</th>
                                                                                <th>支付方式</th>
                                                                                <th>状态</th>
                                                                                <th>创建时间</th>
                                                                                <th>完成时间</th>
                                                                                <th>预约查询</th>
                                                                                <th>优惠码</th>
                                                                                <th>优惠金额</th>
									</tr>
								</thead>
								<tbody>
							             <foreach name="list" item="vo">
                                                                         <tr>
                                                                             <td>{$vo.order_no}</td>
                                                                             <td>{$vo.shop_name}</td>
                                                                             <td>{$vo.total_money}</td>
                                                                             <td>{$vo.actual_money}</td>
                                                                             <td>{$vo.give_money}</td>
                                                                             <td><?php $type = $vo['pay_type'];switch($type){case 1: echo "会员卡";break;case 2: echo "余额";break;case 3: echo "现金";break;case 4: echo "积分";break;case 5: echo "微信";break;case 6: echo "支付宝";break;} ?></td>
                                                                             <td><?php $type = $vo['pay_status'];switch($type){case -3: echo "未支付";break;case -2: echo "关闭订单";break;case -1: echo "挂单";break;case 1: echo "支付";break;case 2: echo "预约支付";break;} ?></td>
                                                                             <td>{:date('Y-m-d H:i:s',$vo['c_time'])}</td>
                                                                             <td>{:date('Y-m-d H:i:s',$vo['w_time'])}</td>
                                                                             <td><a href="{:url('Member/memberappment',array('or_guid'=>$vo['or_guid']))}">查询</a></td>
                                                                             <td>{$vo.voucher_code}</td>
                                                                             <td>{$vo.coucher_money}</td>
                                                                         </tr>
                                                                     </foreach>
								</tbody>
							</table>
							<div class="pagination">{$page}</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<include file="public@footer" />
	</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>